histogram Table[Cos[k^2], {k, 10000}]